package org.third.common.datasource;

import org.hibernate.context.spi.CurrentTenantIdentifierResolver;

/**
 * Created by Huailong Tang(Jason) on 2017/10/16.
 */
public class CurrentTenantIdentifierResolverImpl implements CurrentTenantIdentifierResolver {

  static String DEFAULT = "DEFAULT";

  @Override
  public String resolveCurrentTenantIdentifier() {
    return DEFAULT;
  }

  @Override
  public boolean validateExistingCurrentSessions() {
    return true;
  }
}
